package com.vinoxm.rss;

import com.vinoxm.common.core.application.InterceptorApplication;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(scanBasePackages = {"com.vinoxm.rss", "com.vinoxm.common.auth"},
        exclude = {
                SecurityAutoConfiguration.class, ManagementWebSecurityAutoConfiguration.class
        })
@MapperScan("com.vinoxm.**.dao")
@EnableScheduling
@EnableFeignClients
//@EnableDiscoveryClient
//@EnableResourceServer
//@EnableGlobalMethodSecurity(prePostEnabled = true)
public class RssApplication extends InterceptorApplication {

    public static void main(String[] args) {
        SpringApplication.run(RssApplication.class, args);
    }
}